package com.example.SpringRestApp.beans;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@SuppressWarnings("restriction")
@XmlRootElement(name="campaigns")
public class CampaignList {

	private List<Campaign> campaigns;
	
	public CampaignList() {}

	public CampaignList(List<Campaign> campaigns) {
		this.campaigns = campaigns;
	}

	@XmlElement(name="campaign")
	public List<Campaign> getCampaigns() {
		return campaigns;
	}

	public void setCampaigns(List<Campaign> campaigns) {
		this.campaigns = campaigns;
	}

}
